//
//  LFBTabBar.h
//  LoveFreshBeen
//
//  Created by LeungChaos on 16/6/11.
//  Copyright © 2016年 xinluqi. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LFBTabBar;

typedef void(^LFBTabBarCenterBtnDidClickBlock)(LFBTabBar *tabBar,UIButton *btn);


@protocol LFBTabBarDelegate <NSObject>

- (void)tabBar:(LFBTabBar *)tabBar centerBtnDidClick:(UIButton *)btn;

@end

@interface LFBTabBar : UITabBar

/**
 *  快速创建tabBar 通过block回调中间按钮的点击事件
 *
 *  @param block 中间按钮被点击时回调
 */
+ (instancetype)tabBarWithCenterBtnDidClickBlock:(LFBTabBarCenterBtnDidClickBlock)block;

@property (nonatomic, weak) id<LFBTabBarDelegate> boc_delegate;

@end